package com.lanou.beautifulwardrobe.activity;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageButton;
import android.widget.Toast;

import com.lanou.beautifulwardrobe.R;
import com.lanou.beautifulwardrobe.contants.ToastCommom;

/**
 * Created by dllo on 15/11/4.
 */
public class RegisterActivity extends Activity implements View.OnClickListener {
    private ImageButton registerBack;
    private EditText registerUser, registerPwd, registerAgainPwd;
    private Button registerBtn;
  //  private ToastCommom toastCommom;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_register);
        initView();

    }

    private void initView() {
        registerBack = (ImageButton) findViewById(R.id.registerBack);
        registerUser = (EditText) findViewById(R.id.registerUser);
        registerPwd = (EditText) findViewById(R.id.registerPwd);
        registerAgainPwd = (EditText) findViewById(R.id.registerAgainPwd);
        registerBtn = (Button) findViewById(R.id.registerBtn);
        listener();
    }
    private void listener(){
        registerBack.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
     //  ToastCommom.makeText(this,"返回了", Toast.LENGTH_SHORT).show();
        finish();
    }
}
